Warning: Attempt to read property "destinationId" on bool in /var/www/webroot/ROOT/amaadventure/ftp/views/module.package.php on line 261

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 1' at line 1 in /var/www/webroot/ROOT/amaadventure/ftp/includes/database.php:42 Stack trace: #0 /var/www/webroot/ROOT/amaadventure/ftp/includes/database.php(42): mysqli_query(Object(mysqli), 'SELECT slug FRO...') #1 /var/www/webroot/ROOT/amaadventure/ftp/includes/modals/class.destination.php(145): mysqliDatabase->query('SELECT slug FRO...') #2 /var/www/webroot/ROOT/amaadventure/ftp/views/module.package.php(261): Destination::field_by_id(NULL, 'slug') #3 /var/www/webroot/ROOT/amaadventure/ftp/views/modules.php(46): require_once('/var/www/webroo...') #4 /var/www/webroot/ROOT/amaadventure/ftp/package.php(13): require_once('/var/www/webroo...') #5 {main} thrown in /var/www/webroot/ROOT/amaadventure/ftp/includes/database.php on line 42